<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Address_model extends AppModel {
    var $_primary_key = ADDRESS_ADDRESS_ID;
    var $_tablename = ADDRESS;
    var $_mapping = array(
                           array('id' => ADDRESS_ADDRESS_ID),
                           array('admin_id' => ADDRESS_FRANCHISE_ID),
                           array('line1' => ADDRESS_LINE1),
                           array('line2' => ADDRESS_LINE2),
                           array('line3' => ADDRESS_LINE3),
                           array('city' => ADDRESS_CITY),
                           array('postcode' => ADDRESS_POSTCODE),
						   array('state' => ADDRESS_STATE),
						   array('phone' => ADDRESS_PHONE),
						   array('mobile' => ADDRESS_MOBILE),
						   array('fax' => ADDRESS_FAX),
						   array('email' => ADDRESS_EMAIL),
                            );

    public function Address_model($id = NULL){
        parent::AppModel($id);
    }
}
?>